﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Searchx.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>地质资料查询服务平台</title>
    <link href="css/all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/navigation.js"></script>

    <script src="http://api.map.baidu.com/api?v=1.4" type="text/javascript"></script>
    <script type="text/javascript">
        var mymap;
        function initialize() {
            mymap = new BMap.Map('map');
            mymap.centerAndZoom(new BMap.Point(116.404, 39.915), 8);
            mymap.addControl(new BMap.NavigationControl());
            mymap.addControl(new BMap.ScaleControl());
            // map.addControl(new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_TOP_RIGHT, offset: new BMap.Size(10, 10),isOpen:1}))

        }
        function aclick(x, y, fileID, title, CollectAgens) {
            var point = new BMap.Point(Trans(y), Trans(x));
            mymap.panTo(point);
            var marker = new BMap.Marker(point);
            mymap.addOverlay(marker);


            var opts = {
                width: 250,
                height: 70

            };
            var ct = '<a  href="GeoDataDetails.aspx?FID=' + fileID + '" target="_blank" style="color:red">' + fileID + '</a>' + '<div style="font-size:12px">' + title + '</div>';
            var infoWindow = new BMap.InfoWindow(ct, opts);
            marker.openInfoWindow(infoWindow);

            document.getElementById("summary").innerHTML = "<table class='summary'><tr><td >档号：" + fileID + "</td></tr> <tr><td>题名：" + title + "</td> <td>形成单位：" + CollectAgens + "</td></tr></table>";

        }
        function Trans(value) {
            var a = Math.floor(value / 10000);
            var b = Math.floor(value % 10000 / 100);
            var c = Math.floor(value % 100);
            return a + (b + (c / 60)) / 60;
        }


        function rs() {
            divtomoveObj = document.getElementById("divtomove");
            divtomoveObj.style.posLeft = (document.body.clientWidth - divtomoveObj.offsetWidth) / 2;
        }
    </script>
</head>
<body onload="initialize();rs()">


    <form id="form1" runat="server">
        <div align="center" style="width: 990px;">
            <div id="Top" style="background: url(img/thetop.jpg) repeat-x; height: 20px; cursor: pointer;">&nbsp;国土资源部实物地质资料中心欢迎您！<a style="margin-left: 500px;" onclick="myhomepage()">设为首页</a><a style="margin-left: 100px; cursor: pointer;" onclick="addfavorite()">添加收藏</a></div>
            <div id="Head">
                <img alt="" src="img/topheader.jpg" width="100%" />
            </div>

            <div id="menu">
                <ul>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_1" class='m_li_a'><a href="index.aspx">首&nbsp;&nbsp;页</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_2" class='m_li' onmouseover='mover(2);' onmouseout='mout(2);'><a href="Advanced_Search.aspx">高级检索</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_3" class='m_li' onmouseover='mover(3);' onmouseout='mout(3);'><a href="SpatialSearch.aspx">空间检索</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_4" class='m_li' onmouseover='mover(4);' onmouseout='mout(4);'><a href="#">地质资料</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_5" class='m_li' onmouseover='mover(5);' onmouseout='mout(5);'><a href="contactus.aspx">联系我们</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>
                    <li id="m_6" class='m_li' onmouseover='mover(6);' onmouseout='mout(6);'><a href="http://www.baidu.com">帮助</a></li>
                    <li class="m_line">
                        <img src="img/line1.gif" /></li>

                </ul>
            </div>

            <div style="height: 32px; background: url(img/navbr2.jpg)">
                <ul class="smenu">
                    <li style="padding-left: 29px;" id="s_1" class='s_li_a'>
                        <script type="text/javascript">    writeDateInfo()</script>
                        &nbsp;&nbsp;&nbsp;&nbsp;欢迎您！</li>
                    <li style="padding-left: 141px;" id="s_2" class='s_li' onmouseover='mover(2);' onmouseout='mout(2);'><a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a></li>
                    <li style="padding-left: 252px;" id="s_3" class='s_li' onmouseover='mover(3);' onmouseout='mout(3);'><a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="j#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a></li>
                    <li style="padding-left: 362px;" id="s_4" class='s_li' onmouseover='mover(4);' onmouseout='mout(4);'><a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a></li>
                    <li style="padding-left: 474px;" id="s_5" class='s_li' onmouseover='mover(5);' onmouseout='mout(5);'><a href="#">&nbsp;</a>&nbsp;&nbsp;  &nbsp;&nbsp;<a href="#">&nbsp;</a></li>
                    <li style="padding-left: 447px;" id="s_6" class='s_li' onmouseover='mover(6);' onmouseout='mout(6);'><a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a>&nbsp;&nbsp; &nbsp;&nbsp;<a href="#">&nbsp;</a> </li>

                </ul>
            </div>
            <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td height="20"></td>
                </tr>
                <tr>
                    <td height="36" valign="top" style="color: #0088cc; line-height: 36px; border-top: #e8e8e8 1px solid; background: #ffffff; padding-left: 10px;"><strong>您的位置：</strong><a href="#">国土资源实物地质资料中心</a> &gt;&gt; <a href="#">实物地质资料目录查询服务平台</a> &gt;&gt; 高级检索</td>
                </tr>

                <tr>
                    <td height="125" valign="top" style="border-top: #e8e8e8 1px solid; background: #ffffff;">


                        <form id="search_form" name="search_form" method="post" action="GeoDataList.aspx">
                            <table width="720" border="0" align="center" cellpadding="0" cellspacing="0" style="margin: auto;">
                                <tr>
                                    <td height="28" align="right">题名</td>
                                    <td>
                                        <asp:TextBox ID="Titlename" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                    <td align="right">档号</td>
                                    <td>
                                        <input type="text" name="textfield2" id="textfield2" style="width: 200px" /></td>
                                </tr>
                                <tr>
                                    <td height="28" align="right">关键词</td>
                                    <td>
                                        <input type="text" name="textfield3" id="textfield3" style="width: 200px" /></td>
                                    <td align="right">形成单位</td>
                                    <td>
                                        <input type="text" name="textfield4" id="textfield4" style="width: 200px" /></td>
                                </tr>
                                <tr>
                                    <td height="28" align="right">资料类别</td>
                                    <td>
                                        <select id="txtZLLB" name="txtZLLB" style="width: 200px">
                                            <option value="">----------</option>
                                            <option value="区调">区调</option>
                                            <option value="区域地质调查">---区域地质调查</option>
                                            <option value="区域矿产调查">---区域矿产调查</option>
                                            <option value="区域物化探调查">---区域物化探调查</option>
                                            <option value="区域水工环调查">---区域水工环调查</option>
                                            <option value="城市地质调查">---城市地质调查</option>
                                            <option value="区域农业地质调查">---区域农业地质调查</option>
                                            <option value="其他专项区调">---其他专项区调</option>
                                            <option value="海洋地质调查">海洋地质调查</option>
                                            <option value="海洋区域地质调查">---海洋区域地质调查</option>
                                            <option value="海岸带地质矿产调查">---海岸带地质矿产调查</option>
                                            <option value="大陆架地质矿产调查">---大陆架地质矿产调查</option>
                                            <option value="国际海底资源地质调查">---国际海底资源地质调查</option>
                                            <option value="极地地质调查">---极地地质调查</option>
                                            <option value="其他海洋地质调查">---其他海洋地质调查</option>
                                            <option value="矿产勘查">矿产勘查</option>
                                            <option value="水工环勘查">水工环勘查</option>
                                            <option value="水文地质勘查">---水文地质勘查</option>
                                            <option value="工程地质勘查">---工程地质勘查</option>
                                            <option value="环境（灾害）地质勘查">---环境（灾害）地质勘查</option>
                                            <option value="天然地震地质勘查">---天然地震地质勘查</option>
                                            <option value="物化遥勘查">物化遥勘查</option>
                                            <option value="物探">---物探</option>
                                            <option value="化探">---化探</option>
                                            <option value="遥感地质勘查">---遥感地质勘查</option>
                                            <option value="物化探异常查证">---物化探异常查证</option>
                                            <option value="地质科学研究">地质科学研究</option>
                                            <option value="技术方法研究">技术方法研究</option>
                                        </select>
                                    </td>
                                    <td align="right">工作程度</td>
                                    <td>
                                        <select id="txtGZCD" name="txtGZCD" style="width: 200px">
                                            <option value="">----------</option>
                                            <option value="1/100万">1/100万</option>
                                            <option value="1/50万">1/50万</option>
                                            <option value="1/25万">1/25万</option>
                                            <option value="1/20万">1/20万</option>
                                            <option value="1/10万">1/10万</option>
                                            <option value="1/5万">1/5万</option>
                                            <option value="其他比例尺">其他比例尺</option>
                                            <option value="预查">预查</option>
                                            <option value="普查">普查</option>
                                            <option value="详查">详查</option>
                                            <option value="勘探">勘探</option>
                                            <option value="开发勘探">开发勘探</option>
                                            <option value="钻井地质">钻井地质</option>
                                            <option value="其他">其他</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="28">矿种</td>
                                    <td>
                                        <input type="text" name="textfield5" id="textfield5" style="width: 200px" />
                                        <img src="pic/kc.png" width="16" height="16" /></td>
                                    <td>行政区划</td>
                                    <td>
                                        <input type="text" name="textfield6" id="textfield6" style="width: 200px" /><img src="pic/kc.png" width="16" height="16" /></td>
                                </tr>
                                <tr>
                                    <td height="28">形成时间</td>
                                    <td colspan="3">

                                        <input type="text" id="txtPKIIHStart" name="txtPKIIHStart" value="" style="width: 128px" />
                                        <img src="pic/calendar.jpg" width="18" height="18" alt="开始时间" style="cursor: pointer" />
                                        &nbsp;到&nbsp;<input type="text" id="txtPKIIHEnd" name="txtPKIIHEnd" value="" style="width: 128px" />
                                        <img src="pic/calendar.jpg" width="18" height="18" alt="结束时间" style="cursor: pointer" />



                                    </td>
                                </tr>
                                <tr>
                                    <td height="36">&nbsp;</td>
                                    <td colspan="3">

                                        <asp:ImageButton src="pic/search.jpg" ID="SearchBtn" runat="server"
                                            OnClick="SearchBtn_Click" />

                                    </td>
                                </tr>


                            </table>
                        </form>




                        <table width="980" border="0" align="center" cellpadding="0" cellspacing="0" style="margin: auto;">
                            <tr>
                                <td height="20" colspan="2">&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="350px" align="left" valign="top">
                                    <div style="width: 310px; height: 25px; font-size: 12px; background-color: #909090; padding-top: 10px; padding-left: 25px">档号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题名 </div>
                                    <asp:DataList ID="dl_FileList" runat="server">
                                        <ItemTemplate>

                                            <a id="DocFile" class="alist" href="#"
                                                onclick="aclick(<%#Eval("StartLON")%>,<%#Eval("StartLAT")%>,'<%#Eval("FileID")%>','<%#Eval("Title")%>','<%#Eval("CollectAgens")%>')">[<%#Eval("FileID")%>]--<%#Eval("Title")%></a>
                                        </ItemTemplate>

                                    </asp:DataList>

                                </td>
                                <td align="center">
                                    <div id="summary">
                                    </div>
                                    <div id="map" style="width: 620px; height: 550px; border: 0px solid #3F0;" marginwidth="0" marginheight="0" scrolling="no"></div>
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>






            </table>
            <div id="foot">
                <a href="Searchx.aspx">Searchx.aspx</a>
            </div>
        </div>
    </form>
</body>
</html>
